home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / xlib03.zip / XPAL.H < prev    next >
Text File  |  1993-04-05  |  3KB  |  82 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XPAL - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ; ****** Aeronautical Research Laboratory              ****************
  11. ; ****** Defence Science and Technology Organisation   ****************
  12. ; ****** Australia                                     ****************
  13. ;
  14. ; egg@dstos3.dsto.gov.au
  15. ; teg@bart.dsto.gov.au
  16. ;
  17. ;  Terminology & notes:
  18. ;         VRAM ==   Video RAM
  19. ;         SRAM ==   System RAM
  20. ;         X coordinates are in pixels unless explicitly stated
  21. ;
  22. ;----------------------------------------------------------------------*/
  23.  
  24. #ifndef _XPAL_H_
  25. #define _XPAL_H_
  26.  
  27. #define PAL_ROTATE_DOWN 0
  28. #define PAL_ROTATE_UP   1
  29.  
  30. /* FUNCTIONS =========================================================== */
  31.  
  32. extern void x_get_pal_raw(       /* Read DAC palette into raw buffer       */
  33.               BYTE far * pal,
  34.               WORD num_colrs,
  35.               WORD start_index);
  36.  
  37. extern void x_get_pal_struc(     /* Read DAC palette into annotated buffer */
  38.               BYTE far * pal,
  39.               WORD num_colrs,
  40.               WORD start_index);
  41.  
  42. extern void x_put_pal_raw(       /* Write DAC palette from raw buffer      */
  43.               BYTE far * pal,
  44.               WORD num_colrs,
  45.               WORD start_index);
  46.  
  47. extern void x_put_pal_struc(     /* Write DAC palette from annotated buffer*/
  48.               BYTE far * pal);
  49.  
  50. extern x_set_rgb(                /* Set the RGB components of a color index*/
  51.               BYTE color,
  52.               BYTE red_c,
  53.               BYTE green_c,
  54.               BYTE blue_c);
  55.  
  56. extern x_rot_pal_raw(           /* Rotate a raw palette buffer             */
  57.               BYTE far * pal,
  58.               WORD direction,
  59.               WORD num_colrs);
  60.  
  61. extern void x_rot_pal_struc(    /* Rotate an anottated palette buffer      */
  62.               BYTE far * pal,
  63.               WORD direction);
  64.  
  65. extern WORD x_cpcontrast_pal_struc( /* Copy and contrast adjust annotated  */
  66.               BYTE far *src_pal,    /*  palette buffer                     */
  67.               BYTE far *dest_pal,
  68.               BYTE Intensity);
  69.  
  70. extern void x_transpose_pal_struc( /* Write DAC palette from annotated type*/
  71.               BYTE far * pal,      /* buffer with a new offset             */
  72.               WORD StartColor);
  73.  
  74. extern  void x_put_contrast_pal_struc( /* Write DAC palette from annotated */
  75.               BYTE far * pal,     /* type buffer with specified intensity  */
  76.               BYTE  intensity);
  77.  
  78.  
  79. #endif
  80.  
  81.  
  82.